import axios from 'axios'

// let host = 'http://127.0.0.1:8000'
let host = 'http://www.longtcp138.com/mobile/interface/'

// 用户注册
export const register = params => { return axios.post(`${host}/register/`, params)}
// 用户登录
export const loginSend = params => { return axios.post(`${host}/login/`, params)}
// 查询用户信息
export const memberInfo = params => { return axios.post(`${host}/member_info/`, params)}
// 查询是否已填qq和姓名
export const checkName = params => { return axios.post(`${host}/check_qq_name/`, params)}
// 认证 qq 和 姓名
export const approveName = params => { return axios.post(`${host}/rz_qq_name/`, params)}
// 获取首页数据
export const homeData = params => { return axios.post(`${host}/index/`, params)}
// 获取首页数据
export const gameOpen = params => { return axios.post(`${host}/game_open/`, params)}
// 获取最新中奖纪录
export const newRecord = params => { return axios.post(`${host}/new_open_info/`, params)}
// 获取历史中奖纪录
export const lottList = params => { return axios.post(`${host}/lott_list/`,params)}
// 获取充值类型
export const getRechargeType = params => { return axios.post(`${host}/pay_type_list/`, params)}
// 获取充值详细信息
export const getRechargeTypeMsg = params => { return axios.post(`${host}/offline_payment/`, params)}
// 提交充值申请
export const sendPay = params => { return axios.post(`${host}/sendPay_new/`, params)}
// 查询是否有待审核提现
export const checkTX = params => { return axios.post(`${host}/check_member_tx/`, params)}
// 提交提现申请
export const withdrawal = params => { return axios.post(`${host}/draw/`, params)}
// 获取交易明细数据
export const trade = params => { return axios.post(`${host}/trade/`, params)}
// 获取战绩数据
export const tickets = params => { return axios.post(`${host}/tickets/`, params)}
// 获取战绩详情数据
export const ticketsDetails = params => { return axios.post(`${host}/lottery_detail/`, params)}
// 获取账户明细数据
export const acountDetail = params => { return axios.post(`${host}/acount_detail/`, params)}
// 获取消息中心数据
export const message = params => { return axios.post(`${host}/message/`, params)}
// 修改登录密码
export const modifyLoginPsw = params => { return axios.post(`${host}/modify_pwd/`, params)}
// 修改取款密码
export const modifyDrawalPsw = params => { return axios.post(`${host}/modify_draw_pwd/`, params)}
// 绑定银行卡
export const bindCard = params => { return axios.post(`${host}/bind_card/`, params)}

// 获取会员管理收益数据
export const lowerIncome = params => { return axios.post(`${host}/lower_income/`, params)}
// 获取下级会员列表
export const lowerList = params => { return axios.post(`${host}/lower_list_b/`, params)}
// 搜索会员
export const searchMember = params => { return axios.post(`${host}/search_member/`, params)}
// 获取会员详情信息
export const lowMemberInfo = params => { return axios.post(`${host}/lower_member_info/`, params)}
// 升级为B级会员
export const memberToB = params => { return axios.post(`${host}/member_to_b/`, params)}
// 升级为B级会员
export const oddsModify = params => { return axios.post(`${host}/juni_odds_modify/`, params)}
// 获取一周日期
export const weekList = params => { return axios.post(`${host}/week_list/`, params)}
// 获取会员购彩记录
export const memberBuyList = params => { return axios.post(`${host}/member_buy_list/`, params)}
// 获取会员邀请信息
export const inviCode = params => { return axios.post(`${host}/invi_code/`, params)}

// 彩票购买
export const buyLottery = params => { return axios.post(`${host}/buy_lottery/`, params)}
// 北京赛车彩票详情 / 一分赛车
export const deadAwar = params => { return axios.post(`${host}/dead_awar/`, params)}
// 北京赛车走势图 / 一分赛车
export const trendAll = params => { return axios.post(`${host}/trend_all/`, params)}
// 香港六合彩走势图号码
export const trendNum = params => { return axios.post(`${host}/xglhc_trend_num/`, params)}
// 香港六合彩走势图总和
export const trendSum = params => { return axios.post(`${host}/xglhc_trend_sum/`, params)}
// 香港六合彩走势图特码
export const trendTm = params => { return axios.post(`${host}/tema/`, params)}
// 香港六合彩生肖对应数字
export const sxNumber = params => { return axios.post(`${host}/sx_number/`, params)}


export default axios
